package com.mc.music_web.mapper;

import com.mc.music_web.entity.Song;
import com.mc.music_web.vo.SongVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SongVoMapper {

    //查询
    List<SongVo> selectSongVo();


    //单查询
    Song selectBySong(Integer songId);

    //删除
    int deleteSong(Integer songId);
    //添加
    int insertSong(Song song);

    //修改
    int updateSong(Song song);
    //模糊查询
    List<SongVo> selectByChooseSong(String keyword);
}
